package com.example.springsecutity_demo_0904.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {
    @PostMapping("/logout")
    public String logout(){
        return "logout";
    }
    @GetMapping("/index")
    public String index(){
        return "idnex";
    }
    @GetMapping("/admin/api")
    public String admin(){
        return "admin";
    }
    @GetMapping("/user/api")
    public String user(){
        return "user";
    }
    @GetMapping("/app/api")
    public String app(){
        return "app";
    }
    @GetMapping("/noAuth")
    public String noAuth(){
        return "noAuth";
    }
}
